package com.wondertek.poms.dao.po;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import javax.persistence.*;
import javax.persistence.Id;
import java.io.Serializable;


@Data
@Entity
@Table(name = "PLAY_BILL")
@DynamicUpdate
@DynamicInsert
@Proxy(lazy = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Playbill implements Serializable {

    private static final long serialVersionUID = -7841999634988718719L;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "PLAY_BILL_SEQ")
    @SequenceGenerator(name = "PLAY_BILL_SEQ", allocationSize = 1, sequenceName = "PLAY_BILL_SEQ")
    private Long id;

    @Column(name = "CONTENT_ID")
    private String contentId;

    @Column(name = "START_TIME")
    private String startTime;

    @Column(name = "END_TIME")
    private String endTime;

    /**
     *  节目名称
     */
    @Column(name = "PROGRAM")
    private String program;

    @Column(name = "PLAY_DAY")
    private String playDay;

    @Column(name = "RANKING")
    private String ranking;

    @Column(name = "SEQ_RANK")
    private String sequence;

    /**
     *  节目对应剧集ID
     */
    @Column(name = "PLAY_SHELL_ID")
    private String playShellID;

    /**
     *  节目对应点播内容ID
     */
    @Column(name = "PLAY_VOD_ID")
    private String playVodID;
}
